home *** CD-ROM | disk | FTP | other *** search
- From: ChrisHines@msn.com (Chris Hines)
- Subject: Re: sizeof() question >>> :)
- Date: 21 Apr 96 02:25:35 -0700
- References: <1996Apr12.061927@topaz> <31714828.1574068@news.linex.com> <4l0dcr$14t0@darwin.nbnet.nb.ca> <danpop.829678939@news.cern.ch> <4l4fik$1a8_005@donstarr.best.com> <4l5pqj$c8m@news.halcyon.com>
- Message-ID: <00001a81+0000b278@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- >I think the wisest advise is to track the size yourself when you
- >allocate, pass array dims yourself to functions, etc.
- > --Norm
-
- That's probably the best advice given so far on this topic. Either
- store the size of the array somewhere (preferably encapsulated in an
- object that represents the array), or put a sentinel value at the end
- of the array so that your code can be made to stop before it over
- runs the array.
-
- ------
- ChrisHines@msn.com
- The sooner you start coding, the longer it will take you to finish.
-